#include <stdio.h>

int main()
{
    FILE *fp1, *fp2;
    char ch;
    fp1 = fopen("test1.txt", "r");//以读方式打开test1.txt
    fp2 = fopen("test2.txt", "w");//以写方式打开test2.txt
    while (feof(fp1)) //
    {
        fputc(ch, fp2);
    }
    fclose(fp1);
    fclose(fp2);
    return 0;
}


